export default {
	addCart(state,payload){
		let product = state.cartList.find( item=>{
			return item.iid == payload.iid;
		})
		if(product){
			product.counter += 1;
		}else{
			state.cartList.push(payload)
		}
	}
}